﻿<UserControl x:Class="LiSAClient.WpfClient.View.Frame.Menus.LeftMenu"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:menus="clr-namespace:LiSAClient.WpfClient.View.Frame.Menus"
             xmlns:windows="clr-namespace:LiSAClient.WpfClient.View.Frame.Windows"
             mc:Ignorable="d" 
            d:DesignHeight="700" Width="230">
    <DockPanel Style="{StaticResource LeftMenuStyle}" LastChildFill="True">
        <StackPanel DockPanel.Dock="Bottom">
            <TextBlock Text="Tinder for articles!" Style="{StaticResource LeftMenuLiSADefaultTaglineStyle}" />
            <TextBlock Text="{Binding DataContext.Version, RelativeSource={RelativeSource AncestorType=windows:MainWindow}}" Style="{StaticResource LeftMenuLiSADefaultVersionStyle}" TextOptions.TextRenderingMode="Aliased"/>
        </StackPanel>
        <ListBox ItemsSource="{Binding MenuItems}" DockPanel.Dock="Top" Style="{StaticResource LeftMenuListStyle}"
                 ScrollViewer.HorizontalScrollBarVisibility="Hidden"
                 IsSynchronizedWithCurrentItem="True" 
                 SelectedItem="{Binding SelectedMenuItem}">
            <ListBox.ItemsPanel>
                <ItemsPanelTemplate>
                    <StackPanel Orientation="Vertical"/>
                </ItemsPanelTemplate>
            </ListBox.ItemsPanel>
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <menus:LeftMenuItem />
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
    </DockPanel>
</UserControl>

